class OpenBlindModel {
  String? imageUrl;
  String? name;
  int? count;
  bool? whether;

  OpenBlindModel({this.imageUrl, this.whether});

  OpenBlindModel.fromJson(Map<String, dynamic> json) {
    if (json["imageUrl"] is String) {
      imageUrl = json["imageUrl"];
    }
    if (json["name"] is String) {
      name = json["name"];
    }
    if (json["count"] is num) {
      count = (json["count"] as num).toInt();
    }
    if (json["whether"] is bool) {
      whether = json["whether"];
    }
  }

  static List<OpenBlindModel> fromList(List<Map<String, dynamic>> list) {
    return list.map(OpenBlindModel.fromJson).toList();
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> _data = <String, dynamic>{};
    _data["imageUrl"] = imageUrl;
    _data["whether"] = whether;
    _data["name"] = name;
    _data["count"] = count;
    return _data;
  }
}
